home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / JFC.bin / OrganicDefaultTheme.java < prev    next >
Text File  |  1998-06-30  |  5KB  |  101 lines

  1. /*
  2.  * @(#)OrganicDefaultTheme.java    1.3 98/01/30
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21. package com.sun.java.swing.plaf.organic;
  22.  
  23. import com.sun.java.swing.plaf.*;
  24. import java.awt.Font;
  25.  
  26. /**
  27.  * This describes the default "Khaki" theme for the Organic Look and Feel.
  28.  * It's commonly referred to as the "Santa Fe" theme.
  29.  *
  30.  * @version 1.3 01/30/98
  31.  * @author Steve Wilson
  32.  */
  33.  
  34. public class OrganicDefaultTheme extends OrganicTheme{
  35.  
  36.     private final static String name = "Santa Fe";
  37.     /* Define Organic Colors using the JOS palette*/
  38.  
  39.     /*   JOS color mapping */
  40.     /*     Purple-ish colors */
  41.     private final ColorUIResource josPurple4 = new ColorUIResource(103,  87, 167);
  42.     private final ColorUIResource josPurple3 = new ColorUIResource(119, 111, 175);
  43.     private final ColorUIResource josPurple2 = new ColorUIResource(167, 167, 231);
  44.     private final ColorUIResource josPurple1 = new ColorUIResource(204, 204, 255);
  45.     /*     Orange-ish colors */
  46.     private final ColorUIResource josOrange4 = new ColorUIResource(255, 127, 000);
  47.     private final ColorUIResource josOrange3 = new ColorUIResource(255, 151,  79);
  48.     private final ColorUIResource josOrange2 = new ColorUIResource(255, 204, 153);
  49.     private final ColorUIResource josOrange1 = new ColorUIResource(255, 255, 240);
  50.     /*     Green-ish colors */
  51.     private final ColorUIResource josGreen4  = new ColorUIResource(051, 102, 102);
  52.     private final ColorUIResource josGreen3  = new ColorUIResource(119, 159, 127);
  53.     private final ColorUIResource josGreen2  = new ColorUIResource(159, 215, 183);
  54.     private final ColorUIResource josGreen1  = new ColorUIResource(207, 239, 199);
  55.     /*     Brown-ish colors */
  56.     private final ColorUIResource josKhaki4  = new ColorUIResource( 87,  87,  47);
  57.     private final ColorUIResource josKhaki3  = new ColorUIResource(159, 151, 111);
  58.     private final ColorUIResource josKhaki2  = new ColorUIResource(199, 183, 143);
  59.     private final ColorUIResource josKhaki1  = new ColorUIResource(231, 215, 183);
  60.  
  61.     private final ColorUIResource white  = new ColorUIResource(255, 255, 255);
  62.     private final ColorUIResource black  = new ColorUIResource(0, 0, 0);
  63.     private final ColorUIResource desktop = new ColorUIResource(223, 223, 223);
  64.  
  65.     private final FontUIResource systemFont = new FontUIResource("Dialog", Font.PLAIN, 12);
  66.     private final FontUIResource windowTitleFont = new FontUIResource("SansSerif", Font.BOLD, 12);
  67.     private final FontUIResource userFont = new FontUIResource("SansSerif", Font.PLAIN, 12);
  68.  
  69.     public ColorUIResource getControl1() { return josKhaki1; }
  70.     public ColorUIResource getControl2() { return josKhaki2; }
  71.     public ColorUIResource getControl3() { return josKhaki3; }
  72.     public ColorUIResource getControl4() { return josKhaki4; }
  73.  
  74.     public ColorUIResource getHighlight1() { return josGreen1; }
  75.     public ColorUIResource getHighlight2() { return josGreen2; }
  76.     public ColorUIResource getHighlight3() { return josGreen3; }
  77.     public ColorUIResource getHighlight4() { return josGreen4; }
  78.  
  79.     public ColorUIResource getDarkAccent1()  { return josPurple1; }
  80.     public ColorUIResource getDarkAccent2()  { return josPurple2; } 
  81.     public ColorUIResource getDarkAccent3()  { return josPurple3; }
  82.     public ColorUIResource getDarkAccent4()  { return josPurple4; }
  83.  
  84.     public ColorUIResource getLightAccent1()  { return josOrange1; }
  85.     public ColorUIResource getLightAccent2()  { return josOrange2; }
  86.     public ColorUIResource getLightAccent3()  { return josOrange3; }
  87.     public ColorUIResource getLightAccent4()  { return josOrange4; }
  88.  
  89.     public ColorUIResource getWhite()  { return white; }
  90.     public ColorUIResource getBlack() { return black; }
  91.  
  92.     public ColorUIResource getDesktopColor() { return desktop; }
  93.  
  94.     public String getName() {return name;}
  95.  
  96.     public FontUIResource getControlTextFont() { return systemFont;}
  97.     public FontUIResource getUserTextFont() { return userFont;}
  98.     public FontUIResource getMenuTextFont() { return systemFont;}
  99.     public FontUIResource getEmphasisTextFont() { return windowTitleFont;}
  100. }
  101.